package com.zlll.winner.mapper.advertising;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.advertising.AdvertisingPublish;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 广告发布表
 Mapper 接口
 * </p>
 *
 * @author qsx
 * @since 2019-09-07
 */
public interface AdvertisingPublishMapper extends BaseMapper<AdvertisingPublish> {

    List<AdvertisingPublish> getAdvertisingPublishs(@Param("cityName") String cityName,@Param("spaceId")Long spaceId);

    List<Map<String, Object>> findAdvertisePage(@Param("spaceId") Long spaceId, @Param("status") Integer status, @Param("cityCode") String cityCode,
                                                @Param("type") Integer type, @Param("category") Integer category, IPage<Map<String, Object>> page);
}
